package com.example.mapping.sevice;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.mapping.constant.Constants;
import com.example.mapping.convert.DictConvert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import com.example.mapping.mapper.DictMapper;
import com.example.mapping.domain.Dict;
/**
 * @author baoyoujia
 */
@Service
public class DictService extends ServiceImpl<DictMapper, Dict> {

    public List<Dict> getDictByIds(List<Long> dictIds) {
        LambdaQueryWrapper<Dict> dictQueryWrapper = new LambdaQueryWrapper<Dict>().in(Dict::getId, dictIds).in(Dict::getSysDelete, Constants.Number.INT_0, Constants.Number.INT_1);
        return list(dictQueryWrapper);
    }
}
